<div class="buttons">
    <a href="<?php echo $this->createUrl('create') ?>">Create Item</a>
    <a href="<?php echo $this->createUrl('category/index') ?>">Category</a>
    <a href="<?php echo $this->createUrl('default/logout') ?>">Logout</a>
</div>
<?php
$this->widget('zii.widgets.grid.CGridView', array(
    'dataProvider' => $dataProvider,
    'filter' => $model,
    'columns' => array(
        'name',
        'url',
        array(
            'name' => 'ord',
            'headerHtmlOptions' => array('width' => 25),
            'filter' => false,
        ),
        array(
            'name' => 'cid',
            'headerHtmlOptions' => array('width' => 50),
            'value' => '$data->category->name',
            'filter' => CHtml::listdata(NCategory::model()->findAll(), 'id', 'name')
        ),
        array(
            'class' => 'CButtonColumn',
            'template' => '{update}{delete}'
        )
    )
));
?>